package com.pingan.glue.gluegame.service;

import com.pingan.glue.gluegame.controller.form.FaceFieldForm;
import com.pingan.glue.gluegame.controller.form.FaceSearchForm;
import com.pingan.glue.gluegame.controller.form.SearchResponse;
import com.pingan.glue.gluegame.entity.FaceFieldEntity;
import com.pingan.glue.gluegame.entity.FriendUserEntity;
import org.springframework.web.multipart.MultipartFile;

public interface FaceService {

    /**
     * 查询头像属性
     * @param userId
     * @return
     */
    FaceFieldEntity queryFaceFromDb(Long userId);

    /**
     * 检索图片信息
     * @param image
     */
    FaceFieldEntity faceDetect(String image,String path,Long userId);


    /**
     * 图片新增
     * @param form
     */
    String add(FaceFieldForm form);

    /**
     * 图片新增
     * @param form
     */
    String update(FaceFieldForm form);

    /**
     * 人脸登陆
     * @param image
     * @return
     */
    String loginFace(String image);

    /**
     * 人脸搜索
     * @param form
     * @param entity
     * @return
     */
    SearchResponse faceSearch(FaceSearchForm form, FriendUserEntity entity);


    void excel(String fileName);

}
